
import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author pson
 */
public class PlayerRoster {
    
    private ArrayList<Player> players;
    private Player current_player;
    private int current_index;
    
    
    public Player getCurrentPlayer() {
        return current_player;
    }
    
    public void nextPlayer() {
        current_index++;
        if (current_index == players.size()) {
            current_index = 0;
        }
        current_player = players.get(current_index);
    }
    
    
}
